﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FG_Admin_DAL;
using Model;

namespace FG_Admin_BLL
{
    class TicketBLL
    {
        TicketsDAL dal = new TicketsDAL();
        /// <summary>
        /// 分页显示所有雪场票价
        /// </summary>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <returns></returns>
        public List<Tickets> GetTickets(int PageIndex, int PageSize)
        {
            return dal.GetTickets(PageIndex, PageSize);
        }
        /// <summary>
        /// 显示当前雪场信息
        /// </summary>
        /// <param name="TicketsID">当前雪场票价编号</param>
        /// <returns></returns>
        public Tickets GetTickets(int TicketsID)
        {
            return dal.GetTickets(TicketsID);
        }
        /// <summary>
        /// 修改当前雪场信息
        /// </summary>
        /// <param name="tickets"></param>
        /// <returns></returns>
        public int EditTickets(Tickets tickets)
        {
            return dal.EditTickets(tickets);
        }
        /// <summary>
        /// 分页显示用户订单信息
        /// </summary>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <param name="UsersID">用户编号</param>
        /// <returns></returns>
        public List<FG_Admin_DAL.Models.TicketsMessage> GetTicketsBuy(int PageIndex, int PageSize, int UsersID)
        {
            return dal.GetTicketsBuy(PageIndex, PageSize, UsersID);
        }
        /// <summary>
        /// 修改订单信息
        /// </summary>
        /// <param name="T_B"></param>
        /// <returns></returns>
        public int EditTicketsBuy(Tickets_Buy T_B)
        {
            return dal.EditTicketsBuy(T_B);
        }
        /// <summary>
        /// 分页显示用户退货信息
        /// </summary>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <param name="UsersID">用户编号</param>
        /// <returns></returns>
        public List<FG_Admin_DAL.Models.TicketsMessage> GetTicketsRefund(int PageIndex, int PageSize, int UsersID)
        {
            return dal.GetTicketsRefund(PageIndex, PageSize, UsersID);
        }
        /// <summary>
        /// 修改退票信息
        /// </summary>
        /// <param name="T_R"></param>
        /// <returns></returns>
        public int EditTicketsRefund(Tickets_Refund T_R)
        {
            return dal.EditTicketsRefund(T_R);
        }
    }
}
